package com.aaa.sls;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.circuitbreaker.EnableCircuitBreaker;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.transaction.annotation.EnableTransactionManagement;


@SpringBootApplication
//@EnableEurekaClient //开启eureka客户端 当注册中心为eureka时使用注解
@EnableDiscoveryClient //开启客户端发现 任何注册中心都能使用该注解
@MapperScan("com.aaa.sls.dao")
@EnableTransactionManagement
@EnableCircuitBreaker //开启断路器
public class MarkeApp {
    public static void main(String[] args) {
        SpringApplication.run(MarkeApp.class,args);
    }
}
